x86: make run-time part of trampoline relocatable
authorJan Beulich <jbeulich@novell.com>
Fri, 19 Aug 2011 08:54:26 +0000 (09:54 +0100)
committerJan Beulich <jbeulich@novell.com>
Fri, 19 Aug 2011 08:54:26 +0000 (09:54 +0100)
commitbc4a68f21f43c2e37346cf5a1f37c19a53b540c2
tree3b4af0bd3182a264bbe3b84a65e21a606e4f43ab
parent2f399b3bb0cae8072ed42856eac6a805728516fe
x86: make run-time part of trampoline relocatable

In order to eliminate an initial hack in the EFI boot code (where
memory for the trampoline was just "claimed" instead of properly
allocated), the trampoline code must no longer make assumption on the
address at which it would be located. For the time being, the fixed
address is being retained for the traditional multiboot path.

As an additional benefit (at least from my pov) it allows confining
the visibility of the BOOT_TRAMPOLINE definition to just the boot
code.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/boot/Makefile
xen/arch/x86/boot/head.S
xen/arch/x86/boot/trampoline.S
xen/arch/x86/boot/wakeup.S
xen/arch/x86/efi/boot.c
xen/arch/x86/smpboot.c
xen/arch/x86/x86_32/mm.c
xen/arch/x86/x86_64/mm.c
xen/arch/x86/xen.lds.S
xen/include/asm-x86/config.h